﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>HelloWorld: HelloWorld.cs Source File</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                HelloWorld: HelloWorld.cs Source File
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">HelloWorld.cs</div>  </div>
</div>
<div class="contents">
<a href="_hello_world_8cs.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 ﻿
<a name="l00002"></a><a class="code" href="namespace_company_1_1_product.html">00002</a> <span class="keyword">namespace </span>Company.Product
<a name="l00003"></a>00003 {
<a name="l00004"></a>00004     <span class="keyword">using</span> System;
<a name="l00005"></a>00005     <span class="keyword">using</span> StateForge.StateMachine;
<a name="l00006"></a>00006 
<a name="l00007"></a><a class="code" href="class_company_1_1_product_1_1_hello_world.html">00007</a>     <span class="keyword">public</span> <span class="keyword">partial class </span><a class="code" href="class_company_1_1_product_1_1_hello_world.html">HelloWorld</a>
<a name="l00008"></a>00008     {
<a name="l00009"></a><a class="code" href="class_company_1_1_product_1_1_hello_world.html#a84568f051e2113e642161bd1ad21f6d8">00009</a>         <span class="keyword">private</span> HelloWorldContext <a class="code" href="class_company_1_1_product_1_1_hello_world.html#a84568f051e2113e642161bd1ad21f6d8">context</a>;
<a name="l00010"></a>00010 
<a name="l00011"></a><a class="code" href="class_company_1_1_product_1_1_hello_world.html#a667ccc9fec1973d10609c2fb7941aba3">00011</a>         <span class="keyword">public</span> <a class="code" href="class_company_1_1_product_1_1_hello_world.html">HelloWorld</a>()
<a name="l00012"></a>00012         {
<a name="l00013"></a>00013             this.context = <span class="keyword">new</span> HelloWorldContext(<span class="keyword">this</span>);
<a name="l00014"></a>00014             this.context.Observer = ObserverConsole.Instance;
<a name="l00015"></a>00015         }
<a name="l00016"></a>00016 
<a name="l00017"></a><a class="code" href="class_company_1_1_product_1_1_hello_world.html#a07c72ffffd264e39cb66d540acaf2e2d">00017</a>         <span class="keyword">protected</span> <span class="keyword">internal</span> <span class="keywordtype">void</span> DoPrint()
<a name="l00018"></a>00018         {
<a name="l00019"></a>00019             Console.WriteLine(<span class="stringliteral">&quot;HelloWorld&quot;</span>);
<a name="l00020"></a>00020         }
<a name="l00021"></a>00021 
<a name="l00022"></a><a class="code" href="class_company_1_1_product_1_1_hello_world.html#a4013609df2d920d9c80d879625a8b1cd">00022</a>         <span class="keyword">static</span> <span class="keywordtype">void</span> Main(<span class="keywordtype">string</span>[] args)
<a name="l00023"></a>00023         {
<a name="l00024"></a>00024             var helloWorld = <span class="keyword">new</span> <a class="code" href="class_company_1_1_product_1_1_hello_world.html">HelloWorld</a>();
<a name="l00025"></a>00025             helloWorld.EvPrint();
<a name="l00026"></a>00026             Environment.Exit(0);
<a name="l00027"></a>00027         }
<a name="l00028"></a>00028     }
<a name="l00029"></a>00029 }
</pre></div></div>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
